import React from 'react'
import useCount from './useCount'

import useDataList from './useDataList'

export default function CustomHooks() {
    let [v, a, m] = useCount(0)
    console.log(v, a, m)

    console.log(useDataList(1))
    // x 不能相应数据
    return (
        <div>
            hello {v}
            <button onClick={()=>a(1)}>add</button>
            <button onClick={()=>m(1)}>minus</button>
        </div>
    )
}
